package team.hyznrj.studentsys.enums;

import lombok.Getter;

/**
 * @author ReMidDream
 * @date 2018-04-23 16:01
 **/
@Getter
public enum  AccountEnum {

    LOGIN_ERROR(200,"登录失败!"),
    ACCOUNT_PASSWORD_NOT_CORRECT(201,"帐号或者密码不正确!"),
    ACCOUNT_ID_IS_EMPTY(202,"帐号信息有误!"),
    ACCOUNT_IS_EXIST(203,"帐号已存在!"),
    COLLEGE_MAJOR_PARAM_ERROR(204,"学院,专业参数错误!"),
    TABLE_ERROR(205,"参照异常!"),


    SUPER_ADMIN(0,"超级管理员"),
            ;

    private Integer code;

    private String message;

    AccountEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
